com.supermap.ar.areffect.preset
Class ARRealMap
- java.lang.Object
-
- com.supermap.ar.areffect.preset.ARRealMap
-
public class ARRealMap extends java.lang.Object1:1 maps on AR
-
-
Constructor Summary
Constructors Constructor and Description ARRealMap(AREffectElement parent)The constructor.ARRealMap(EffectView effectView)The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description floatgetMapScale()Gets the scales of the mapWorkspacegetWorkspace()Gets the workspacebooleanisMapFillBackTransparent()Whether the background of 1:1 map is transparentbooleanopen(java.lang.String mapName)Opens a map according to its namevoidrefresh()RefreshvoidsetMapFillBackTransparent(boolean mapAlphaOverlay)Sets whether the filling background of a map is transparent.voidsetWorkspace(Workspace workspace)Sets the workspace
-
-
-
Constructor Detail
-
ARRealMap
public ARRealMap(EffectView effectView)
The constructor.- Parameters:
effectView- Special-effect viewPlease set the parameters of EffectView first.
EffectView.setDeviceLocation(Location)orcom.supermap.ar.areffect.uav.UAVVideoEffectView#setUavRecordParameters(ArrayList)EffectView.setBasePlaneHeight(float)
-
ARRealMap
public ARRealMap(AREffectElement parent)
The constructor.- Parameters:
parent-
-
-
Method Detail
-
refresh
public void refresh()
Refresh
-
getMapScale
public float getMapScale()
Gets the scales of the map- Returns:
-
setWorkspace
public void setWorkspace(Workspace workspace)
Sets the workspace- Parameters:
workspace-
-
getWorkspace
public Workspace getWorkspace()
Gets the workspace- Returns:
- the workspace
-
open
public boolean open(java.lang.String mapName)
Opens a map according to its name- Parameters:
mapName- Map name- Returns:
- the status value. if it is opened successfully, returns true.
-
isMapFillBackTransparent
public boolean isMapFillBackTransparent()
Whether the background of 1:1 map is transparent- Returns:
-
setMapFillBackTransparent
public void setMapFillBackTransparent(boolean mapAlphaOverlay)
Sets whether the filling background of a map is transparent.- Parameters:
mapAlphaOverlay- whether it is transparent. true is by default.
-
-